from django.contrib import admin
from django.urls import path, include
from django.conf import settings
from django.conf.urls.static import static
from django.contrib.auth import views as auth_views

from .views import home

urlpatterns = [
                  path('admin/', admin.site.urls),
                  path('accounts/login/', auth_views.LoginView.as_view(), name='login'),
                  path('accounts/logout/', auth_views.LogoutView.as_view(), name='logout'),
                  path('accounts/password_change/', auth_views.PasswordChangeView.as_view(), name='password_change'),
                  path('accounts/password_change/done/', auth_views.PasswordChangeDoneView.as_view(),
                       name='password_change_done'),
                  path('', home, name='home'),
                  path('logs/', include('logs.urls')),
              ] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
